import Vue from 'vue'
import App from './App'
// main.js
import uView from "uview-ui";
Vue.use(uView);

//数据管理中心
import store from '@/store'
Vue.prototype.$store = store;
// 工具
import '@/plugins/utils.js';
//配置全局请求api 
// Vue.prototype.baseUrl = 'https://zfkj.feipinguanjia.com';
Vue.prototype.baseUrl = 'https://app.feipinguanjia.com';
Vue.prototype.pciUrl = 'https://www.hyzy.vip/';  
//权限配置中心
import base from '@/config/baseUrl'
Vue.prototype.$base = base;
//挂载全局http请求
import $http from '@/config/requestConfig'
Vue.prototype.$http = $http;


//挂在全局请求 2 
import $api from '@/util/api'
Vue.prototype.$api = $api;

import $https from '@/util/request.js'
Vue.prototype.$https = $https;

// #ifdef MP-WEIXIN
//挂载全局微信分享
import { wxShare } from '@/config/utils'
Vue.prototype.wxShare = wxShare;
// #endif
//判断是否登录
import { judgeLogin } from '@/config/login';
Vue.prototype.judgeLogin = judgeLogin;
Vue.config.productionTip = false;
// #ifdef H5
//微信SDK
import '@/plugins/wxJsSDK.js';
// #endif
//websocket
import mySocket from '@/config/socket';
// 挂载socket实例到Vue原型上
Vue.prototype.$socket = mySocket
//全局组件
App.mpType = 'app'

const app = new Vue({
	store,
	...App
})
app.$mount();